package com.example.user.mapper;

import com.example.model.user.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author xie
* @description 针对表【sys_role(角色信息表)】的数据库操作Mapper
* @createDate 2025-04-26 16:44:06
* @Entity com.example.model.user.Role
*/
@Mapper
public interface RoleMapper {

    int delete(Long id);

    int insert(Role record);

    Role get(Long id);

    List<Role> list(Role role);

    List<Role> listRoleByUserName(String userName);

    int update(Role record);

}
